package com.bcxj.apiboss.remote;

import com.bcxj.internalcommon.response.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ClassName: ServiceUserClient
 * Package: com.bcxj.apiboss.remote
 * Description:
 *
 * @Author BCXJ
 * @Create 2025/5/6 11:29
 * @Version 1.0
 * @Since 1.0
 */
@FeignClient("service-user")
public interface ServiceUserClient {

    @GetMapping("/user/list/{pageNo}")
    public ResponseResult list(@PathVariable("pageNo") Integer pageNo);

    @GetMapping("/user/state")
    public ResponseResult setState(@RequestParam("id") Long id, @RequestParam("state") Integer state);
}
